import fetch from '@/utils/fetch'

export function getFloorList(areaIds, params) {
	return fetch({
	    url: '/uc/v1/mgt/floor',
	    method: 'get',
		headers: {'x-area-id': areaIds},
	    params
  	})
}

export function getFloorDetail(id) {
	return fetch({
	    url: `/uc/v1/mgt/floor/${id}`,
	    method: 'get'
  	})
}

export function createFloor(data) {
	return fetch({
		url: '/uc/v1/mgt/floor',
		method: 'post',
		data
	})
}

export function modifyFloor(id, data) {
	return fetch({
	    url: `/uc/v1/mgt/floor/${id}`,
	    method: 'patch',
	    data
	})
}